import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {GoodsManagementComponent} from './goods-management.component';

const routes: Routes = [
    {path: '', component: GoodsManagementComponent,
        children: [
            {path: '', redirectTo: 'goo-goods', pathMatch: 'full'},
            {path: 'goo-type-level1', loadChildren: './goo-type-level1/goo-type-level1.module#GooTypeLevel1Module'},
            {path: 'goo-type-level2', loadChildren: './goo-type-level2/goo-type-level2.module#GooTypeLevel2Module'},
            {path: 'goo-goods', loadChildren: './goo-goods/goo-goods.module#GooGoodsModule'},
            {path: 'goo-brand', loadChildren: './goo-brand/goo-brand.module#GooBrandModule'},
            {path: 'base-goods', loadChildren: './goo-base-goods/base-goods.module#BaseGoodsModule'},
            {path: 'goo-attribute', loadChildren: './goo-attribute/goo-attribute.module#GooAttributeModule'},
            {path: 'goo-attribute-value', loadChildren: './goo-attribute-value/goo-attribute-value.module#GooAttributeValueModule'},
            {path: 'goo-inventory', loadChildren: './goo-inventory/goo-inventory.module#GooInventoryModule'},
            {
                path: 'goo-brand-recommend-goods',
                loadChildren: './goo-brand-recommend-goods/goo-brand-recommend-goods.module#GooBrandRecommendGoodsModule'
            },
            {
                path: 'goo-in-warehouse',
                loadChildren: './goo-in-warehouse/goo-in-warehouse.module#GooInWarehouseModule'
            },
            {
                path: 'goo-out-warehouse',
                loadChildren: './goo-out-warehouse/goo-out-warehouse.module#GooOutWarehouseModule'
            },
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class GoodsManagementRoutingModule {
}
